﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EntityFrameworkCRUD.Core.BaseRepository
{
    public interface IBaseRepository<T, TKey> : IDisposable where T : class
    {
        #region 同步

        /// <summary>
        /// 通过主键获取实体对象
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        T Get(TKey id);

        #endregion
    }
}
